PROJECT_NAME = 'Fotolog'

from Products.Archetypes import atapi
from Products.CMFCore import utils as cmfutils
from Products.CMFCore import permissions as cmfperms

def initialize(context):
    import Products.Fotolog.content

    # Initialize portal content
    content_types, constructors, ftis = atapi.process_types(
        atapi.listTypes(PROJECT_NAME),
        PROJECT_NAME)

    cmfutils.ContentInit(
        PROJECT_NAME + ' Content',
        content_types = content_types,
        permission = cmfperms.AddPortalContent,
        extra_constructors = constructors,
        fti = ftis,
        ).initialize(context)

